How to get and update all the related records in flow